﻿using AJWPFAdmin.Core.CommonEntity;
using AJWPFAdmin.Core.Enums;
using AJWPFAdmin.Core.Excel;
using AJWPFAdmin.Core.Validation;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AJWPFAdmin.Core.Models.EF.Tables
{
    /// <summary>
    /// 黑名单车辆记录表
    /// </summary>
    [Comment("黑名单车辆记录表")]
    public partial class BlacklistedCar : CommonTableEntity
    {
        /// <summary>
        /// 车牌号
        /// </summary>
        [Comment("车牌号")]
        [Display(Name = "车牌号")]
        [Required]
        [MaxLength(120)]
        [AJExportField(ColumnName = "车牌号")]
        public string CarNo { get; set; }

        /// <summary>
        /// 号牌颜色
        /// </summary>
        [Comment("号牌颜色")]
        [Display(Name = "号牌颜色")]
        [AJExportField(ColumnName = "号牌颜色")]
        [StringLength(10)]
        public string PlateColor { get; set; }

        /// <summary>
        /// 车辆识别代码VIN
        /// </summary>
        [MaxLength(100)]
        [Comment("车辆识别代码VIN")]
        [Display(Name = "车辆识别代码VIN")]
        [AJExportField(ColumnName = "VIN")]
        public string VIN { get; set; }

        /// <summary>
        /// 燃料类型名称,  SystemDictionary.Name
        /// </summary>
        [Comment("燃料类型名称")]
        [Display(Name = "燃料类型")]
        [MaxLength(20)]
        [AJExportField(ColumnName = "燃料类型")]
        public string FuelTypeName { get; set; }

        /// <summary>
        /// 排放标准
        /// </summary>
        [Comment("排放标准")]
        [Display(Name = "排放标准")]
        [AJExportField(ColumnName = "排放标准")]
        [StringLength(10)]
        public string EmissionStandard { get; set; }

        /// <summary>
        /// 黑名单原因
        /// </summary>
        [Comment("黑名单原因")]
        [Display(Name = "黑名单原因")]
        [AJExportField(ColumnName = "黑名单原因")]
        [StringLength(500)]
        public string Reason { get; set; }
    }
}
